package com.qsxc.system.config.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.time.Duration;

@Data
@ConfigurationProperties(prefix = "security.jwt")
public class JwtProperties {

    private String tokenHeader = "Authorization";
    private String signingKey;
    private Duration expiration = Duration.ofMinutes(120);
    private Boolean autoRefresh = true;
    private Duration refreshPoint = Duration.ofMinutes(30);
    private String refreshTokenHeader = "refreshToken";
}
